package cn.tedu.egmvc2.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class EmpController {
    @RequestMapping("/emp/insert")
    @ResponseBody
    public String insert(String name,String salary,String job){
        System.out.println("名字："+name+"，工资："+salary+"，职位："+job);
        return "添加成功";
    }
}
